//
//  BCHomeRefreshHeader.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/13.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCHomeRefreshHeader.h"

@implementation BCHomeRefreshHeader

- (void)prepare {
    [super prepare];
    self.mj_h = MJRefreshHeaderHeight+Height_StatusBar;
}


- (void)beginRefreshing {
    [super beginRefreshing];
    if (self.delegate && [self.delegate respondsToSelector:@selector(home_beginRefreshing)]) {
        [self.delegate home_beginRefreshing];
    }
}

- (void)endRefreshing {
    self.pullingPercent = 0;
    [super endRefreshing];
    if (self.delegate && [self.delegate respondsToSelector:@selector(home_endRefreshing)]) {
        [self.delegate home_endRefreshing];
    }
}

@end
